home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-04-11 | 2.7 KB | 100 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="6"
- "COUNT"="4"
- "UIPATH 1"="Startup/Shutdown\Startup\Windows 9x/ME\10) Boot Menu"
- "NAME"="Advanced Options"
- "VERSION"="1.38"
- "OSVERSION"="10101"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Enable "Previous version of MS-DOS" Startup Menu option"
- "TEXT 2"="Enable "Safe mode with network support" Startup Menu option"
- "TEXT 3"="Enable logging (BOOTLOG.TXT is created in the root folder)"
- "TEXT 4"="Load COMMAND.COM or DRVSPACE.BIN at top of conventional memory"
- '"TEXT 5"="Start "Safe Mode" upon next boot"
- "DESCRIPTION 1"="Change these options to control the way Windows 95/OSR2/98/ME boots up."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com/"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="Updated by AXCEL216 [http://members.aol.com/axcel216/]."
- "COMMENT 2"="Thanks to David Goodenough (dpg@ix.netcom.com) for the fix!"
-
- 'Declaration of some constants
- sF="C:\MSDOS.SYS"
- sO="Options"
-
- 'Called when the Plugin is started
- Sub Plugin_Initialize
- Call FileSetAttribute(sf,"H-")
- Call FileSetAttribute(sf,"R-")
- Call FileSetAttribute(sf,"S-")
-
- 'Fix #1
- 'i=IniReadValue(sf,so,"MultiBoot")
-
- i=IniReadValue(sf,so,"BootMulti")
- if i=1 then SetUIElement 1,true
-
- i=IniReadValue(sf,so,"Network")
- if i=1 then SetUIElement 2,true
-
- i=IniReadValue(sf,so,"DisableLog") '//Undoc?!
- if i=0 or IsEmpty(i) then SetUIElement 3,true
-
- i=IniReadValue(sf,so,"LoadTop")
- if i=1 then SetUIElement 4,true
-
- 'i=IniReadValue(sf,so,"BootSafe")
- 'if i=1 then SetUIElement 5,true
- End Sub
-
- 'Called when the Plugin should validate the Data the user has entered
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- 'Called when the Plugin should apply the changes
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- Call IniWriteValue(sf,so,"BootMulti",1)
- else
- Call IniWriteValue(sf,so,"BootMulti",0)
- end if
-
- b=GetUIElement(2)
- if b=true then
- Call IniWriteValue(sf,so,"Network",1)
- else
- Call IniWriteValue(sf,so,"Network",0)
- end if
-
- b=GetUIElement(3)
- if b=true then
- Call IniWriteValue(sf,so,"DisableLog",0)
- else
- Call IniWriteValue(sf,so,"DisableLog",1)
- end if
-
- b=GetUIElement(4)
- if b=true then
- Call IniWriteValue(sf,so,"LoadTop",1)
- else
- Call IniWriteValue(sf,so,"LoadTop",0)
- end if
-
- 'b=GetUIElement(5)
- 'if b=true then
- ' Call IniWriteValue(sf,so,"BootSafe",1)
- 'else
- ' Call IniWriteValue(sf,so,"BootSafe",0)
- 'end if
-
- Call Restart()
- End Sub
-
- 'Called when the Plugin is about to be removed from memory
- Sub Plugin_Terminate
- Call FileSetAttribute(sf,"H+")
- Call FileSetAttribute(sf,"R+")
- Call FileSetAttribute(sf,"S+")
- End Sub
-